﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="./resources/img/login/icon.png" >
	<link rel="Shortcut Icon" href="./resources/img/login/icon.png" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="lib/html5shiv.js"></script>
	<script type="text/javascript" src="lib/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="h-ui.admin/css/style.css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<title>衣橱整理</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
</head>
<body>
<header class="navbar-wrapper" style="height: 65px;">
	<div id="demo" class="navbar navbar-fixed-top" style="height: 65px;">
		<div class="container-fluid cl" style="margin-top: 10px;"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="">衣橱整理</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href=""></a>
			<span class="logo navbar-slogan f-l mr-10 hidden-xs"></span>
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav class="nav navbar-nav">
				<ul class="cl">
				</ul>
			</nav>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<!-- <li>超级管理员</li> -->
					<li class="dropDown dropDown_hover" style="margin-top: 10px;">
						<a href="#" class="dropDown_A"><label id="realName"></label> <i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<!-- <li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
                            <li><a href="#">切换账户</a></li> -->
							<li><a href="javascript:void(0)" onclick="logout()">退出</a></li>
						</ul>
					</li>
					<li id="Hui-skin" style="display: none;" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title=""></a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<div style="width: 100%;height: 40px;"></div>
<aside class="Hui-aside" style="top: 65px;">
	<div class="menu_dropdown bk_2">
		<dl id="menu-permission">
			<dt> 权限管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/operator/operator.html" data-title="用户管理" class="yh" href="javascript:void(0)">用户管理</a></li>
					<li style="display: none"><a data-href="/html/operator/role.html" data-title="角色管理" class="js"  href="javascript:void(0)">角色管理</a></li>
					<li style="display: none"><a data-href="/html/operator/permission.html" data-title="权限管理" class="qx"  href="javascript:void(0)">权限管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-banner">
			<dt> 轮播图管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/banner/list.html" class="dp"  data-title="轮播图列表" href="javascript:viod(0);">轮播图列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-train">
			<dt> 培训管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/trainmanage/list.html" class="sh"  data-title="培训管理" href="javascript:void(0)">培训管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-goodsclassify">
			<dt> 商品分类<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/goods_classify/list.html" class="dls"  data-title="商品分类列表" href="javascript:viod(0);">商品分类列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-system-shop">
			<dt> 店铺管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/shop/list.html" class="sj"  data-title="店铺列表" href="javascript:void(0)">店铺列表</a></li>
					<li><a data-href="/html/shop/systemlist.html" class="yh"  data-title="平台" href="javascript:void(0)">平台</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-system-order">
			<dt> 订单管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/order/goods_order_list.html"   data-title="商家商品订单" href="javascript:void(0)">商家商品订单列表</a></li>
					<li><a data-href="/html/order/booking_order_list.html"  data-title="商家预约订单" href="javascript:void(0)">商家预约订单列表</a></li>
					<li><a data-href="/html/order/sysgoods_order_list.html"   data-title="平台商品订单" href="javascript:void(0)">平台商品订单列表</a></li>
					<li><a data-href="/html/order/sysbooking_order_list.html"   data-title="平台预约订单" href="javascript:void(0)">平台预约订单列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-shop_single">
			<dt> 商家店铺管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/shop_single/list.html" id="shopSingle"  data-title="店铺管理" href="javascript:void(0)">店铺管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-shop-goods">
			<dt> 商家商品管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/shop_goods/list.html" id="shopGoods" data-title="店铺管理" href="javascript:void(0)">商品列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-shop-booking">
			<dt> 商家预约管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/shop_booking/list.html"  id="shopBooking" data-title="店铺管理" href="javascript:void(0)">预约管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-shop-goods-order">
			<dt> 商家订单管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/shop_order/goods_order_list.html"  id="shopGoodsOrder" data-title="商品订单" href="javascript:void(0)">商品订单</a></li>
					<li><a data-href="/html/shop_order/booking_order_list.html"  id="shopBookingOrder" data-title="预约订单" href="javascript:void(0)">预约订单</a></li>
				</ul>
			</dd>
		</dl>
<!--		<dl id="menu-article">
			<dt> 资讯管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/find/list.html" class="zx"  data-title="资讯管理" href="javascript:void(0)">资讯管理</a></li>
				</ul>
			</dd>
		</dl>-->
		<dl id="menu-agreement">
			<dt> 协议管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/agreement/list.html" class="xy"  data-title="协议管理" href="javascript:void(0)">协议管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-practitioners">
			<dt> 从业人员管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="/html/practitioners/list.html" class="xy"  data-title="从业人员" href="javascript:void(0)">从业人员</a></li>
				</ul>
			</dd>
		</dl>
	</div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box" style="top: 65px;">
	<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
		<div class="Hui-tabNav-wp">
			<ul id="min_title_list" class="acrossTab cl">
				<li class="active">
					<span title="我的桌面" data-href="">我的桌面</span>
					<em></em></li>
			</ul>
		</div>
		<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
	</div>
	<div id="iframe_box" class="Hui-article">
		<div class="show_iframe">
			<div style="display:none" class="loading"></div>
			<iframe name="yuehuo" id="myrame" style="width: 100%; height: 100%;" scrolling="yes" frameborder="0" src=""></iframe>
		</div>
	</div>
</section>

<div class="contextMenu" id="Huiadminmenu">
	<ul>
		<li id="closethis">关闭当前 </li>
		<li id="closeall">关闭全部 </li>
	</ul>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script src="resources/js/common/vue.min.js"></script>
<script src="resources/js/common/common.js"></script>
<script type="text/javascript">
    function getCookies(cname) {
        var name = cname + "=";
        var ca = document.cookie.split(';');
        for(var i=0; i<ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1);
            if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
        }
        return "";
    }
    var demo = new Vue({
        el: '#demo',
        data: {
            nickName: "",
            realName:"",
			shopId:0
        }, methods: {
            getOperator: function () {
                var t = this;
                var data = executeAjaxByPost('/operator/get_operator_name');
                if (data.retCode == 1) {
//                    $("#nickName").html(data.nickName);
                    t.nickName = data.nickName;
                    $("#realName").html(data.realName);
                    t.realName = data.realName;
                }
            },
			getShop:function () {
				var data = executeAjaxByPost('/backend/shop/getShop?nickName='+this.nickName);
                if (data.status == 1) {
                    this.shopId = data.shopId;
                }
            }
        },
        mounted: function () {
            this.getOperator();
            this.getShop();
            var cookie = getCookies("permission");
            if (cookie.indexOf("operator_admin_permission")==-1){
                $("#menu-permission").hide();
			}
            if (cookie.indexOf("banner_permission")==-1){
                $("#menu-banner").hide();
            }
            if (cookie.indexOf("train_manage_permission")==-1){
                $("#menu-train").hide();
            }
            if (cookie.indexOf("goods_classify_permission")==-1){
                $("#menu-goodsclassify").hide();
            }
            if (cookie.indexOf("shop_permission")==-1){
                $("#menu-system-shop").hide();
            }
            if(cookie.indexOf("system_order_permission")==-1){
                console.log("无权限")
                $("#menu-system-order").hide();
			}
            if(cookie.indexOf("agreement_permission")==-1){
                $("#menu-agreement").hide();
            }
            if (cookie.indexOf("practitioners_permission")==-1){
                $("#menu-practitioners").hide();
			}
            if (cookie.indexOf("shop_single_permission")==-1){
                $("#menu-shop_single").hide();
            }else{
                $('#shopSingle').attr("data-href","/html/shop_single/list.html?shopId="+this.shopId);
			}
            if (cookie.indexOf("shop_goods_permission")==-1){
                $("#menu-shop-goods").hide();
            }else{
                $('#shopGoods').attr("data-href","/html/shop_goods/list.html?shopId="+this.shopId);
			}
            if (cookie.indexOf("shop_booking_permission")==-1){
                $("#menu-shop-booking").hide();
            }else{
                $('#shopBooking').attr("data-href","/html/shop_booking/list.html?shopId="+this.shopId);
			}
            if (cookie.indexOf("shop_order_permission")==-1){
                $("#menu-shop-goods-order").hide();
            }else{
                $('#shopGoodsOrder').attr("data-href","/html/shop_order/goods_order_list.html?shopId="+this.shopId);
                $('#shopBookingOrder').attr("data-href","/html/shop_order/booking_order_list.html?shopId="+this.shopId);
            }
        }
    });



</script>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
    function logout() {
        var data = executeAjaxByPost('/login/logout');
        if (data.retCode == 1) {
            window.location.href = "/login.html";
        }
    }
    function getCookie(name) {
        var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
        if (arr != null) return unescape(arr[2]); return null;
    };
	var permossion = getCookie("permission");
	if(!permossion){
        window.location.href = "/login.html";
	}
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>